package com.zte.purchase.server;


import com.zte.purchase.model.*;
import com.zte.util.PageModel;

import java.util.List;

public interface IPurchaseServer {

    boolean addOnePurchase(CPurchaseAndDetails cPad);

    boolean deletePurchase(String purchaseId);

    boolean updateOnePurchase(CPurchase cPurchase);

    boolean updatePurchaseStatus(CPurchaseAndDetails cPau);

    List<CPurchase> queryCDetailsByPC(PurchaseCondition conn);

    PageModel<CPurchase> queryPurchasePage(PageModel<CPurchase> pageModel,PurchaseCondition conn);

    public CPurchaseAndDetails queryPurchaseDatails(String indent);

    public CDetails2 queryDetail2(String pId);

    List<UpdateBrand> queryAllBrands();

    int updatePurppp(UpdataSave updataSave);

    int updateDettt(UpdataSave updataSave);
}
